home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global SoundActive, gProgrmPathOnHD, OnceCheck, StartingLine
- if SoundActive and (soundBusy(1) = 0) then
- sound playFile 1, gProgrmPathOnHD & "drinks"
- end if
- set StartingLine to 1
- if OnceCheck = 0 then
- cursor(-1)
- set OnceCheck to 1
- repeat with i = 3 to 10
- set the cursor of sprite i to [34, 35]
- puppetSprite(i, 1)
- end repeat
- repeat with i = 42 to 48
- puppetSprite(i, 1)
- end repeat
- end if
- repeat with i = 3 to 10
- if the member of sprite i = "origin" = 0 then
- if rollOver(i) = 0 then
- set the member of sprite i to member "origin"
- end if
- end if
- end repeat
- go(the frame)
- end
-
- on mouseDown
- set bDown to the clickOn
- if (bDown > 2) and (bDown < 11) then
- set the member of sprite bDown to member ("spirit" & bDown - 2) of castLib "drinks"
- else
- if bDown > 41 then
- buttonPressedDown(bDown, "spirits")
- end if
- end if
- end
-
- on mouseUp
- global currMarker
- set bUp to the clickOn
- set destName to the name of the member of sprite bUp
- if (the clickOn > 2) and (the clickOn < 11) and (destName <> "origin") then
- set x to the number of lines in field "backField"
- put marker(0) into line x + 1 of field "backField"
- clearPuppets()
- set currMarker to destName
- go(marker(destName))
- else
- if bUp > 41 then
- buttonPressedUp(bUp, "spirits")
- end if
- end if
- end
-